import type { mstInfoByIdDtos, mstSelInfoDtos } from "@/types/mstinfo"
import type { mstSelReps, mstsel } from "@/types/mstsel"
import { http } from "@/utils/http"

export const getMstselList = () => {
  return http<mstsel[]>({
    method: 'GET',
    url: 'mst/mstSel/getMstselList',
    data: {},
  })
}


export const getMstelandMstinfoByMstselId = (mstselId:string) => {
  return http<mstSelInfoDtos>({
    method: 'GET',
    url: 'mst/mstSel/getMstelandMstinfoByMstselId',
    data: {
      mstselId
    },
  })
}

export const getMstinfoById = (mstinfoId:string) => {
  return http<mstInfoByIdDtos>({
    method: 'GET',
    url: 'mst/mstInfo/getMstinfoById',
    data: {
      mstinfoId
    },
  })
}

export const getHomeMstSel = () => {
  return http<mstSelReps[]>({
    method: 'GET',
    url: 'mst/mstSel/getHomeMstSel',
    data: {},
  })
}